# Author: 开哥
# 2025年11月08日16时33分
# wangjk_loong@163.com

# 城市信息字典
# 为简化，人口数不准确，fact字段为城市的一些特色
cities = {
    "成都": {
        "country": "中国",
        "population": 16000000,
        "features": ["大熊猫基地", "宽窄巷子", "锦里", "火锅"]
    },
    "巴黎": {
        "country": "法国",
        "population": 2000000,
        "fact": ["埃菲尔铁塔", "卢浮宫", "塞纳河"]
    },
    "悉尼": {
        "country": "澳大利亚",
        "population": 5000000,
        "fact": ["悉尼歌剧院", "悉尼海港大桥", "邦迪海滩"]
    }
}

for city, info in cities.items():
    print(f"The information of {city}:")
    for k, v in info.items():
        if type(v) is list:  # 如果城市的某个键对应的值是列表，就调整一下格式以使得输出美观
            print(f"\t{k}: ", end='')
            for _ in v:
                print(f'{_}', end=" ")
            print()
        else:
            print(f"\t{k}: {v}")
